package com.numbfish.ch_07.threadExceptionMove.src.test;

import com.numbfish.ch_07.threadExceptionMove.src.test.extUncaughtExceptionHandler.ObjectUncaughtExceptionHandler;
import com.numbfish.ch_07.threadExceptionMove.src.test.extUncaughtExceptionHandler.StateUncaughtExceptionHandler;
import com.numbfish.ch_07.threadExceptionMove.src.extthread.MyThread;

public class Run1 {

	public static void main(String[] args) {
		MyThread myThread = new MyThread();
		// 对象
		// smyThread
		// .setUncaughtExceptionHandler(new ObjectUncaughtExceptionHandler());
		// 类
		MyThread
				.setDefaultUncaughtExceptionHandler(new StateUncaughtExceptionHandler());
		myThread.start();
	}
}